// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import Vant from 'vant';
import VideoPlayer from 'vue-video-player';		//视频插件
import Video from 'video.js';

import 'vant/lib/index.css';
// import 'vue-video-player/src/custom-theme.css';
import 'video.js/dist/video-js.css';
// require('vue-video-player/node_modules/video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
import { Tabbar, TabbarItem } from 'vant';
import { NavBar } from 'vant';
import { Search } from 'vant';
import { Swipe, SwipeItem } from 'vant';
import { Image as VanImage } from 'vant';
import { Skeleton } from 'vant';
import { PullRefresh } from 'vant';
import { Icon } from 'vant';					//图标插件
import { Form } from 'vant';
import { Field } from 'vant';
import { Button } from 'vant';
// import querystring from 'querystring'
import { List } from 'vant';
import { Cell, CellGroup } from 'vant';
import { ActionSheet } from 'vant';
import { Uploader } from 'vant';
import api from "./Api/index.js";		//shi==


Vue.prototype.$api = api.commonUrl
Vue.config.productionTip = false
Vue.prototype.$axios=axios
Vue.prototype.$video = Video
Vue.use(VideoPlayer);			//视频插件
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);
Vue.use(Search);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(VanImage);
Vue.use(Skeleton);
Vue.use(PullRefresh);
Vue.use(Icon);
Vue.use(Form);
Vue.use(Field);
Vue.use(Button);
// Vue.prototype.$qs = querystring
Vue.use(List);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(ActionSheet);
Vue.use(Uploader);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
